const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,

  token: state => state.user.token,

  userId: state => state.user.userId,
  name: state => state.user.name,
  avatar: state => state.user.avatar,
  introduction: state => state.user.introduction,
  roles: state => state.user.roles,

  // 3.用户的可操作的按钮, 菜单路由
  buttons: state => state.user.buttons,
  menus: state => state.user.menus
}
export default getters
